import request from '@/router/axios';
export const getServCertificateByItem = (itemId) => {
    return request({
        url: '/api/vingsoft-acceptance/servCertificate/getServCertificateByItem',
        method: 'get',
        params: {
            itemId
        }
    })
};

export const save = (row) => {
    return request({
        url: '/api/vingsoft-acceptance/servCertificate/save',
        method: 'post',
        data: row
    })
};

export const getServCertificateByVersion = (itemId, version) => {
    return request({
        url: '/api/vingsoft-acceptance/servCertificate/getServCertificateByVersion',
        method: 'get',
        params: {
            itemId,
            version
        }
    })
};